import request from '@/utils/request'
//查看计费规则列表
export function getRuleListAPI() {
    return request({
        url: '/parking/rule/list',
        method: 'get',

    })
}
//删除计费规则
export function delRuleAPI(id) {
    return request({
        url: `/parking/rule/${id}`,
        method: 'delete',
        id
    })
}
//添加计费规则
export function addRuleAPI(data) {
    return request({
        url: '/parking/rule',
        method: 'post',
        data
    })
}